<?php
class ArticleAction extends Action{
	
	public function article_add(){
			
			
			$this->display();
		
	}
	public function article_insert(){
		$Article   =   D('Article');
		if($Article->create()){
			$result  =  $Article->add();
			if($result){
				$this->success('添加成功');
			}else{
				$this->error('添加失败');
			}
		}else{
			$this->error($Article->getError());
		}
	}
}



?>